import http from '@/utils/request'

export default {
  /**
  * 查询部门列表
  * @param param
  * @returns
  */
  async getDepartmentList(param) {
    return await http.get("/api/department/list", param);
  },
  /**
  * 修改部门
  * @returns
  */
  async updateDept(params) {
    return await http.put("/api/department/update", params);
  },
  //添加
  async addDept(params) {
    return await http.post("/api/department/add", params);
  },
  //删除
  async deleteById(params) {
    return await http.delete("/api/department/delete", params);
    }
}